import { requestMock2 } from '@/utils/request'

export const postCheckPhoneApi = (tel: string) => requestMock2.post<any, void>('/user/docheckphone', { tel })
export const postPhoneCodeApi = (tel: string) => requestMock2.post<any, number>('/user/dosendmsgcode', { tel })
export const postCheckPhoneCodeApi = (tel: string, telcode: string) => requestMock2.post<any, void>('/user/docheckcode', { tel, telcode })
export const postRegisterApi = (tel: string, password: string) => requestMock2.post<any, void>('/user/dofinishregister', { tel, password })
